Global Index
HTML5 JS API Index > Indexed DB Tutorials & Specs

IDBTransaction

Extends EventTarget.

Properties
IDBDatabase
db
The database connection of which this transaction is a part
DOMError
error
If this transaction is not finished, is finished but was successfully committed, or was aborted due to a call to the abort function, this property returns null. If this transaction was aborted due to a failed request, this property returns the same DOMError as the request which caused this transaction to be aborted.
IDBTransactionMode
mode
On getting, provide the mode for isolating access to data inside the object stores that are in the scope of the transaction.
EventHandler
onabort
The event handler for the abort event.
EventHandler
oncomplete
The event handler for the complete event. Note To determine if a transaction has completed successfully, listen to the transaction’s complete event rather than the success event of a particular request, because the transaction may still fail after the success event fires.
EventHandler
onerror
The event handler for the error event.
Operations
void
abort()
If this transaction is finished, the implementation MUST throw a DOMException of type InvalidStateError.
IDBObjectStore
objectStore(DOMString name)
Returns an IDBObjectStore representing an object store that is part of the scope of this transaction. Every call to this function on the same IDBTransaction instance and with the same name returns the same IDBObjectStore instance.
Referenced by
IDBDatabasetransaction(...)
IDBObjectStoretransaction
IDBRequesttransaction